STEP 2: We should have a descriptive variable name and change what's inside the ask command.

  • Change the variable to the left of the equals sign from guess to r.
  • Change the string inside .ask() to "How much red? Enter a value between 0 and 255.".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)